package com.offcn.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.offcn.entity.PageResult;
import com.offcn.seckill.entity.SeckillStatus;
import com.offcn.seckill.pojo.SeckillOrder;


import java.util.List;
import java.util.concurrent.ExecutionException;

/****
 * @Author:ujiuye
 * @Description:SeckillOrder业务层接口
 * @Date 2021/2/1 14:19
 *****/

public interface SeckillOrderService extends IService<SeckillOrder> {

    /**
     * 添加秒杀订单
     */
    Boolean add(String id,String time,String username) throws ExecutionException, InterruptedException;

    /**
     * 查询用户的订单状态
     */
    SeckillStatus queryStatus(String username);

    /**
     * 修改订单状态
     */
    void updatePayStatus(String out_trade_no,String trade_no,String username);

}
